package cz.data.domain.quality.mapstruct;

import cz.data.domain.quality.model.entity.RuleLevelEntity;
import cz.data.domain.quality.model.vo.RuleLevelVo;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface RuleLevelMapper {

    /**
     * 将源对象转换为VO对象
     * @param e
     * @return D
     */
    RuleLevelVo toVO(RuleLevelEntity e);

    /**
     * 将源对象集合转换为VO对象集合
     * @param es
     * @return List<D>
     */
    List<RuleLevelVo> toVO(List<RuleLevelEntity> es);
}
